<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit Artist</title>
    </head>
    <body>
        <div>
            <h1>Edit Artist</h1>
            <g:if test="${flash.message}">
              <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${artistInstance}">
              <div class="errors">
                <g:renderErrors bean="${artistInstance}" as="list" />
              </div>
            </g:hasErrors>
            <g:form method="post" action="update">
              <g:hiddenField name="id" value="${artistInstance.id}" />
              <p>
                <label for="name">Name:</label>
                <span class="${hasErrors(bean:artistInstance,field:'name','errors')}">
                  <g:textField name="name" value="${artistInstance.name}"/>
                </span>
              </p>
              <p>
                <g:submitButton name="update" value="Update" />
              </p>
            </g:form>
        </div>
    </body>
</html>
